package guowenlong.golf.ui.regist.step_three;


import guowenlong.golf.entity.RegistEntity;
import me.wenlong.mixutils.mvp.BaseModel;
import me.wenlong.mixutils.mvp.BasePresenter;
import me.wenlong.mixutils.mvp.BaseView;
import rx.Observable;

/**
 * des   : 描述 author: Gavin email : guowenlong20000@gmail.com time  : 2016年09月13日 下午 6:23.
 */
public interface StepThreeContract {

  interface Model extends BaseModel {

    Observable<RegistEntity> create(String phone_number, String code, String password);
  }

  interface View extends BaseView {

    void createSuccess(RegistEntity registEntity);

    void createError(RegistEntity registEntity);
  }

  abstract class Presenter extends BasePresenter<Model, View> {

    public abstract void create(String phone_number, String code, String password);
  }
}
